package game.model.converter;

import common.model.po.GBlueprintAuthor;
import game.model.request.SaveBlueprintAuthorRequest;

/**
 * @author 米泽鹏
 * @since 2024/9/8 18:30
 */
public class GBlueprintAuthorConverter {

	public static GBlueprintAuthor toGBlueprintAuthor(SaveBlueprintAuthorRequest saveBlueprintAuthorRequest) {
		if (saveBlueprintAuthorRequest == null) {
			return null;
		}
		GBlueprintAuthor gBlueprintAuthor = new GBlueprintAuthor();
		gBlueprintAuthor.setAuthorName(saveBlueprintAuthorRequest.getAuthorName());
		gBlueprintAuthor.setId(saveBlueprintAuthorRequest.getId());
		return gBlueprintAuthor;
	}

}
